<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" class="off">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title>电子商务会员管理系统--后台管理</title>
<link href="__PUBLIC__/admin/index.css" rel="stylesheet" type="text/css" />
<script src="__PUBLIC__/js/jquery.js" type="text/javascript"></script>
<script src="__PUBLIC__/artDialog/jquery.artDialog.js?skin=default" type="text/javascript"></script>
<script src="__PUBLIC__/artDialog/plugins/iframeTools.js" type="text/javascript"></script>
<script src="__PUBLIC__/js/DD_belatedPNG.js"></script> 
<script type="text/javascript">
    DD_belatedPNG.fix('#header,img,background'); 
    function logout(){
	if (confirm("您确定要退出控制面板吗？"))
            top.location = '__URL__/logout';
	return false;
    }
</script>
<style type="text/css">
.objbody{overflow:hidden}
</style>
</head>
<body scroll="no" class="objbody">
<div class="header">
    <div class="logo lf"><a href="__ROOT__"><span class="invisible">{$sitename}</span></a></div>
    <div class="rt-col">
        <img src="__PUBLIC__/admin/copyright.png" align="absmiddle" /> <a href="http://www.easyes.com.cn/license/license.html?key={$key}" target="right">授权Key</a>({$key})<span>|</span><a href="http://www.easyes.com.cn" target="_blank">官方网站</a><span>|</span><a href="http://www.easyes.com.cn/service.php?sn=evip" target="_blank">技术支持</a><span>|</span><a href="http://www.easyes.com.cn/help.php?sn=evip" target="_blank">帮助？</a>
    </div>
    <div class="col-auto">
        您好！{$myinfo['admin_name']}，您于{date('Y年m月d日',$myinfo['admin_date'])}访问<br />
        <a href="__ROOT__" target="_top" >管理首页</a><span>|</span>
        <a href="#" onClick="logout();">退出</a>
    </div>
</div>
<div id="content">
    <!--内左边容-->
    <div class="col-left left_menu">
    	<div id="Scroll"><div id="leftMain"></div></div>
        <a href="javascript:;" id="openClose" style="outline-style: none; outline-color: invert; outline-width: medium;" hideFocus="hidefocus" class="open" title="展开与关闭"><span class="hidden">展开</span></a>
    </div>
    <div class="col-1 lf cat-menu" id="display_center_id" style="display:none" height="100%">
        <div class="content"><iframe name="center_frame" id="center_frame" src="" frameborder="false" scrolling="auto" style="border:none" width="100%" height="auto" allowtransparency="true"></iframe></div>
    </div>
    <!--正文内容-->
    <div class="col-auto mr6">
        <div class="crumbs">当前位置：<span id="current_pos">管理首页 > </span></div>       
        <div class="col-1">
            <div class="content" style="position:relative; overflow:hidden">
                <iframe name="right" id="rightMain" src="__URL__/menuright" frameborder="false" scrolling="auto" style="border:none; margin-bottom:5px" width="100%" height="auto" allowtransparency="true"></iframe>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript"> 
if(!Array.prototype.map)
Array.prototype.map = function(fn,scope) {
  var result = [],ri = 0;
  for (var i = 0,n = this.length; i < n; i++){
	if(i in this){
	  result[ri++]  = fn.call(scope ,this[i],i,this);
	}
  }
return result;
};
var getWindowSize = function(){
return ["Height","Width"].map(function(name){
  return window["inner"+name] ||
	document.compatMode === "CSS1Compat" && document.documentElement[ "client" + name ] || document.body[ "client" + name ]
});
}
window.onload = function (){
	if(!+"\v1" && !document.querySelector) { // for IE6 IE7
	  document.body.onresize = resize;
	} else { 
	  window.onresize = resize;
	}
	function resize() {
		wSize();
		return false;
	}
}
function wSize(){
	//这是一字符串
	var str=getWindowSize();
	var strs= new Array(); //定义一数组
	strs=str.toString().split(","); //字符分割
	var heights = strs[0]-105,Body = $('body');$('#rightMain').height(heights);   
	//iframe.height = strs[0]-46;
	if(strs[1]<980){
		$('.header').css('width',980+'px');
		$('#content').css('width',980+'px');
		Body.attr('scroll','');
		Body.removeClass('objbody');
	}else{
		$('.header').css('width','auto');
		$('#content').css('width','auto');
		Body.attr('scroll','no');
		Body.addClass('objbody');
	}
	var openClose = $("#rightMain").height()+39;
	$('#center_frame').height(openClose+9);
	$("#openClose").height(openClose+30);	
	$("#Scroll").height(openClose-20);
	windowW();
}
wSize();
function windowW(){
    if($('#Scroll').height()<$("#leftMain").height()){
        $(".scroll").show();
    }else{
        $(".scroll").hide();
    }
}
windowW();
//默认载入左侧菜单
$(function(){
    var menuid = $("#menuid").val(menuid);
    if(menuid){
        var menuid = 1;
    }
    $("#leftMain").load("__URL__/menuleft?menuid="+menuid);
})
 //左侧开关
$("#openClose").click(function(){
	if($(this).data('clicknum')==1) {
		$("html").removeClass("on");
		$(".left_menu").removeClass("left_menu_on");
		$(this).removeClass("close");
		$(this).data('clicknum', 0);
		$(".scroll").show();
	} else {
		$(".left_menu").addClass("left_menu_on");
		$(this).addClass("close");
		$("html").addClass("on");
		$(this).data('clicknum', 1);
		$(".scroll").hide();
	}
	return false;
});

function _MP(menuid,targetUrl) {
	$("#menuid").val(menuid);
	$("#rightMain").attr('src', targetUrl);
	$('.sub_menu').removeClass("on fb blue");
	$('#_MP'+menuid).addClass("on fb blue");
	$.get("__URL__/menu?menuid="+menuid,function(data){
		$("#current_pos").html(data+'<span id="current_pos_attr"></span>');
	});
	$("#current_pos").data('clicknum', 1);
}
</script>
</body>
</html>